package top.ucat.boots.starter.oauth2.client.beans.oauth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "登录Token", description = "登录后返回的信息")
public class OauthToken implements Serializable {

    @ApiModelProperty(value = "访问令牌", name = "access_token", required = true, example = "")
    private String access_token;
    @ApiModelProperty(value = "中文名称", name = "labelZh", required = true, example = "")
    private String token_type;
    @ApiModelProperty(value = "刷新令牌", name = "refresh_token", required = true, example = "")
    private String refresh_token;
    @ApiModelProperty(value = "使用范围", name = "scope", required = true, example = "")
    private String scope;
    @ApiModelProperty(value = "超时时间", name = "expires_time", required = true, example = "28800")
    private Integer expires_time;
}
